package com.wjjun.base.data.db;

import java.util.Collection;

/**
 * 数据库接口
 * Created by wjjun on 2018/5/13.
 */

public interface IDBManager {

    long  save(Object o);

    <T> int saveAll(Collection<T> o);

    <T>  T  getById(String id, Class<T> clazz);

    <T>  T  getById(long id, Class<T> clazz);

    <T>  int delete(Class<T> clazz);

    <T> int  delete(T o);


}
